package com.cy.Controller;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@FeignClient(name="nacos-provider")//nacos-providers为服务提供者名称
@RestController
public interface ConsumerHttpApi {
    @GetMapping("/provider/echo/{string}")
    public String echoMessage(@PathVariable String string);
}
